package com.yonyou.sto.modules.ums.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 用户登录参数
 * Created by aegon on 2018/4/26.
 */
@Getter
@Setter
public class UmsAdminParam {
    @ApiModelProperty(value = "用户id")
    private String adminId;
    @NotEmpty
    @ApiModelProperty(value = "用户编码", required = true)
    private String username;
    @NotEmpty
    @ApiModelProperty(value = "用户名称", required = true)
    private String nickName;
    @NotEmpty
    @ApiModelProperty(value = "密码", required = true)
    private String password;
    @NotEmpty
    @ApiModelProperty(value = "组织", required = true)
    private List<String> party;
    @NotEmpty
    @ApiModelProperty(value = "角色", required = true)
    private List<String> role;

    @ApiModelProperty(value = "用户头像")
    private String icon;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "备注")
    private String note;
    @ApiModelProperty(value = "客户NC主键",required = true)
    private String ncid;

}
